<template>
  <el-dialog
    title="项目详情"
    :visible.sync="dialogVisible"
    width="60%"
    :close-on-press-escape="false"
    :close-on-click-modal="false"
    :destroy-on-close="true"
  >
    <el-form :model="itemObj" label-width="140px" label-position="left">
      <el-col :span="24">
        <el-col :span="8">
          <el-form-item label="项目名称:">
            <span>{{ itemObj.projectName }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="主管单位:">
            <span>{{ itemObj.primaryUnit }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="合作单位:">
            <span>{{ itemObj.cooperateUnit }}</span>
          </el-form-item>
        </el-col>
      </el-col>
      <el-col :span="24">
        <el-col :span="8">
          <el-form-item label="项目周期:">
            <span>{{ itemObj.projectCycle }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="申请人:">
            <span>{{ itemObj.createBy }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="申请时间:">
            <span>{{ itemObj.createTime }}</span>
          </el-form-item>
        </el-col>
      </el-col>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="handleClose">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    dialogVisible: {
      type: Boolean,
      default: false,
    },
    itemObj: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {};
  },
  methods: {
    handleClose() {
      this.$emit("handleCloseFn", false);
    },
  },
};
</script>

<style></style>
